/*
 * VarReference.h
 *
 *  Created on: 15.04.2012
 *      Author: Eugene Kornykhin
 */

#ifndef VARREFERENCE_H_
#define VARREFERENCE_H_

#include "../PElement.h"

class VarReference: public PElement {
public:
	VarReference(string var);
	virtual ~VarReference();

	virtual void execute(Interpreter &);

	virtual PolizPosition next_position_after(PolizPosition) const;
	virtual bool isHalt() const;
	virtual VarReference *clone(const Poliz &) const;
	string toString() const;

	string getVar() const;

private:
	string var;
};

#endif /* VARREFERENCE_H_ */
